<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-proLineLog-edit" th:object="${proLineLog}" autocomplete="off">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">日期：</label>
                <div class="col-sm-8">
                    &lt;!&ndash;<input id="nowTime" name="nowTime" th:field="*{nowTime}" class="form-control" type="text">&ndash;&gt;
                    &lt;!&ndash;<input id="thisTime" name="thisTime" th:value="${#dates.format(proLineLog.nowTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">&ndash;&gt;
                    <input type="text" class="time-input" id="nowTime" placeholder="日期" name="nowTime"/>
                </div>
            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">日期：</label>
                <div class="col-sm-8">
                    <!--<input id="nowTime" name="nowTime" class="form-control" type="text">-->
                    <input type="text" class="form-control time-input" th:value="${#dates.format(proLineLog.nowTime, 'yyyy-MM-dd HH:mm:ss')}" id="select_datetime1" placeholder="日期" name="nowTime"/>
                </div>
            </div>
            <!--<div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">日期:</label>
                    <div class="layui-input-inline">
                        <input id="nowTime" name="nowTime" th:value="${#dates.format(proLineLog.thisTime, 'yyyy-MM-dd HH:mm:ss')}" type="text" class="layui-input" placeholder="yyyy-MM-dd HH:mm:ss">
                    </div>
                </div>
            </div>-->
            <div class="form-group">	
                <label class="col-sm-3 control-label">生产线编码：</label>
                <div class="col-sm-8">
                    <input id="lineCode" name="lineCode" th:field="*{lineCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">生产线名称：</label>
                <div class="col-sm-8">
                    <input id="lineName" name="lineName" th:field="*{lineName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">计划投产数量：</label>
                <div class="col-sm-8">
                    <input id="planNum" name="planNum" th:field="*{planNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">实际生成数量：</label>
                <div class="col-sm-8">
                    <input id="realNum" name="realNum" th:field="*{realNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">达成率：</label>
                <div class="col-sm-8">
                    <input id="reachRate" name="reachRate" th:field="*{reachRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">设备运行状态：</label>
<!--                <div class="col-sm-8">-->
<!--                    <input id="runState" name="runState" th:field="*{runState}" class="form-control" type="text">-->
<!--                </div>-->
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('run_state')}">
                        <input type="radio" th:id="${dict.dictCode}" name="runState" th:value="${dict.dictValue}" th:field="*{runState}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">	-->
<!--                <label class="col-sm-3 control-label">0:正常,1:删除：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">	-->
<!--                <label class="col-sm-3 control-label">创建者：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">	-->
<!--                <label class="col-sm-3 control-label">创建时间：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">	-->
<!--                <label class="col-sm-3 control-label">更新者：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">	-->
<!--                <label class="col-sm-3 control-label">更新时间：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">	
                <label class="col-sm-3 control-label">生产线ID：</label>
                <div class="col-sm-8">
                    <input id="lineId" name="lineId" th:field="*{lineId}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "project/proLineLog"
		$("#form-proLineLog-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-proLineLog-edit').serialize());
	        }
	    }

        // 初始化日期时间选择器
        layui.use(['laydate'], function() {
            var laydate = layui.laydate;

            laydate.render({
                elem: '#datetime-picker',
                type: 'datetime',
                format: 'yyyy-MM-dd HH:mm:ss',
                trigger: 'click'
            });
        });
	</script>
</body>
</html>
